package com.VolunteerPlatform.Dao;

import com.VolunteerPlatform.Entity.BankInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BankInfoDao {

    public List<BankInfo> getAllBankInfo(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("BankAccount") String BankAccount,@Param("BankBranch") String BankBranch,@Param("Unit") String Unit,@Param("Deleted") int Deleted,@Param("Page") int Page,@Param("PageList") int PageList);

    public int insertBankInfo(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("BankAccount") String BankAccount,@Param("BankBranch") String BankBranch);

    public int updateBankInfo(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("BankAccount") String BankAccount,@Param("BankBranch") String BankBranch);

    public int deleteBankInfo(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name);

    public int updateBankInfoBatch(@Param("UpdateList") List<Map<String,String>> list);


}
